/**  
* @author renbangjie renbangjie@126.com  
* @date 2014-11-5 上午11:19:03
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.user.service;

import java.io.UnsupportedEncodingException;
import java.util.Map;

import com.yjd.comm.login.dto.UserLoginDto;
import com.yjd.comm.user.model.UserModel;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-5 上午11:19:03
 */
public interface IQQLoginService extends ILoginService {
	
	/**
	 * 获取微信用户信息
	* @param code
	* @return UserLoginDto
	 * @throws UnsupportedEncodingException 
	 */
	public UserLoginDto getUserInfo(String code) throws Exception;
	
	/**
	 * 获取微信请求配置
	* @return Map<String,String>
	 * @throws UnsupportedEncodingException 
	 */
	public Map<String, String> getQQLoginConfig() throws Exception;
	
	/**
	 * 绑定QQ
	* @param uModel
	* @param openid
	* @param nickname
	* @return UserModel
	* @throws Exception
	 */
	public UserModel bindQQ(String uName, String pwd, String ip, String openid, String nickname) throws Exception;
	
	/**
	 * 绑定并注册
	* @param uName
	* @param pwd
	* @param ip
	* @param openid
	* @param nickname
	* @return
	* @throws Exception
	* UserModel
	 */
	public UserModel regLogin(String uName, String pwd, String ip, String openid, String nickname) throws Exception;
	
}
